import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/common.css'
// import ElementUI from 'element-ui';
// import Vant from 'vant';
// import 'element-ui/lib/theme-chalk/index.css';
// import 'vant/lib/index.css';
// 引入样式
// import "vue-easytable/libs/theme-default/index.css";
// // 引入组件库
// import VueEasytable from "vue-easytable";
import i18n from './utils/i18n.js'
import dayjs from 'dayjs'
import utils from './utils/index.js'
// import Header from '@/components/Header.vue'
// const math = require('mathjs');


import {
	NavBar,
	Empty,
	List,
	Popup,
	Icon
} from 'vant';

import 'vant/lib/nav-bar/style';
import 'vant/lib/empty/style';
import 'vant/lib/list/style';
import 'vant/lib/popup/style';
import 'vant/lib/icon/style';

Vue.use(NavBar)
Vue.use(Empty)
Vue.use(List)
Vue.use(Popup)
Vue.use(Icon)

import {
	Button,
	Progress,
	Table,
	TableColumn,
	Popover,
	Input,
	Form,
	FormItem,
	Select,
	Option,
	Divider,
	InputNumber,
	Statistic,
	Dialog,
} from 'element-ui';

Vue.config.productionTip = false
// Vue.use(ElementUI, {
// 	locale: 'en'
// });
// Vue.use(VueEasytable);

Vue.use(Button)
Vue.use(Progress)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Popover)
Vue.use(Input)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Select)
Vue.use(Option)
Vue.use(Divider)
Vue.use(InputNumber)
Vue.use(Statistic)
Vue.use(Dialog)


// Vue.use(Vant);
// Vue.component('Header', Header)



Vue.prototype.$day = dayjs
Vue.prototype.$utils = utils
// Vue.prototype.$math = math;


Vue.prototype.$locale = [{
		name: 'English',
		locale: 'en',
	},
	{
		name: '简体中文',
		locale: 'zh',
	}
]

new Vue({
	router,
	store,
	i18n, // i18n
	render: h => h(App)
}).$mount('#app')